RJ Barrett poured in 31 points but it was not enough as the Philadelphia 76ers defeated the Toronto Raptors 123-112.